using Digitalmes.Common.Enums;

namespace Digitalmes.Domain.Sys;

/// <summary>
/// 留言消息表
/// </summary>
[SugarTable("sys_message", "留言消息表")]
public class SysMessage : EntityTenantBase
{
    /// <summary>
    /// 栏目Id
    /// </summary>
    [SugarColumn(ColumnDescription = "栏目Id")]
    public long ColumnId { get; set; }

    /// <summary>
    /// 类型
    /// </summary>
    [SugarColumn(ColumnDescription = "类型")]
    public MessageEnum Types { get; set; } = MessageEnum.System;

    /// <summary>
    /// 留言标题
    /// </summary>
    [SugarColumn(ColumnDescription = "留言标题", Length = 64)]
    public string? Title { get; set; }

    /// <summary>
    /// 邮箱信息
    /// </summary>
    [SugarColumn(ColumnDescription = "邮箱信息", Length = 64)]
    public string? Email { get; set; }

    /// <summary>
    /// 手机号码
    /// </summary>
    [SugarColumn(ColumnDescription = "手机号码", Length = 32)]
    public string? Mobile { get; set; }

    /// <summary>
    /// 留言标签
    /// </summary>
    [SugarColumn(ColumnDescription = "留言标签", Length = 128)]
    public string? Tags { get; set; }

    /// <summary>
    /// 留言内容
    /// </summary>
    [SugarColumn(ColumnDescription = "留言内容", Length = 1024)]
    public string? Summary { get; set; }

    /// <summary>
    /// 是否已读
    /// </summary>
    [SugarColumn(ColumnDescription = "是否已读")]
    public bool IsRead { get; set; }

    /// <summary>
    /// 是否删除
    /// </summary>
    [SugarColumn(ColumnDescription = "是否删除")]
    public bool IsDelete { get; set; }

    /// <summary>
    /// 用户编号
    /// </summary>
    [SugarColumn(ColumnDescription = "用户编号")]
    public long UserId { get; set; }

    /// <summary>
    /// 用户姓名
    /// </summary>
    [SugarColumn(ColumnDescription = "用户姓名", Length = 32)]
    public string? UserName { get; set; }
}
